<#include "../../ajaxPage.ftl" />
<table class="table table-datatable table-gray check_table">
    <thead>
    <tr>
        <th style="width: 35px;"><input id="checkResourceIdAll" type="checkbox" value=""></th>
        <th>资源ID</th>
        <th>资源名称</th>
        <th>资源地址</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
    <#if resourcesTable.rows??>
        <#list resourcesTable.rows as resource>
        <tr>
            <td>
                <input name="resourceIds" type="checkbox" value="${resource.resourceId!''}">
            </td>
            <td>${resource.resourceId!''}</td>
            <td>${resource.resourceName!''}</td>
            <td>${resource.resourceUrl!''}</td>
            <td>
                <a class="btn btn-green btn-radio nopadding"
                   onclick="return popAddOrModifyResource(${resource.id?c});"
                   title="编辑"><i class="fa fa-edit"></i></a>
            </td>
        </tr>
        </#list>
    </#if>
    </tbody>
</table>
<#if resourcesTable??>
    <@page table=resourcesTable formId="search_assign_resource_table" contentId="assignResourceTableContent"/>
</#if>